package com.service.weChatWifiLogin.controller;

import com.service.weChatWifiLogin.entity.CustomerOrBoss;
import com.service.weChatWifiLogin.service.CustomerOrBossService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 顾客/boss全局表(CustomerOrBoss)表控制层
 *
 * @author makejava
 * @since 2021-06-16 17:10:58
 */
@RestController
@RequestMapping("customerOrBoss")
public class CustomerOrBossController {
    /**
     * 服务对象
     */
    @Resource
    private CustomerOrBossService customerOrBossService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CustomerOrBoss selectOne(String id) {
        return this.customerOrBossService.queryById(id);
    }

}
